<?php

session_start();
require_once('connect.php');
require_once('includes/user.class.php');

$database = Database::getInstance();
$user = new User();

if(!$user->is_logged()) header('Location: index.php');
require_once('partials/header.php'); //wczytaj header i menu
?>


    <div class="container">

        <div class="row">

            <div class="col-md-3">

                <?php require_once('partials/content-left-menu.php'); ?>

            </div>

            <div class="col-md-9">
				<div class="subject-table">
					<div class="subject-table-header subject-table-row">
						<div class="subject-table-header-cell">Nazwa przedmiotu</div>
					</div>
					
				</div>
				<!--TYLKO DLA ADMINOW -->
                <?php
                    if($user->is_leader()){
                        ?>
                        <div class="add-news-subject-area">
                            <input type="text" name="login" id="LOGIN" class="subject-input" placeholder="Nazwa przedmiotu">

                            <input type="submit" name="submit" value="Zapisz przedmiot w bazie" class="subject-button">
                        </div>
                        <?php
                    }
                ?>

					<!--TYLKO DLA ADMINOW -->
            </div>

        </div>

    </div>

 
<?php
require_once('partials/footer.php');
?>
